package com.metajrs.controller;

import com.metajrs.entity.student;
import com.metajrs.service.imp.demoServiceImp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/*
@author ZhongTongYi
@Date 2022/4/7
* */
@RestController
@RequestMapping("test")
public class demoController {

    @Autowired
    private demoServiceImp demoServiceImp;
    @RequestMapping("/getStudnet")
    public List<student> getStudentList(){
        List<student> studentList = demoServiceImp.getStudentList();
        return  studentList;
    }

}
